TotalAmount

class TotalAmount @JvmOverloads constructor(var currency: CurrencyType, var amount: Long = 0)

A simple wrapper that is used to hold amounts of a give currency when totaling values of potentially different currencies.

Since

Moneydance 2017 build 1528

Constructors

Link copied to clipboard
constructor(currency: CurrencyType, amount: Long = 0)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Create a TotalAmount with the given currency and this amount converted into that currency.

fun convertToCurrency(newCurrency: CurrencyType, onDate: Int?): TotalAmount

Create a TotalAmount with the given currency and this amount converted into that currency as of the date specified.

Link copied to clipboard

Return a new TotalAmount with the same values as this one.

Link copied to clipboard
fun incrementBy(subtotal: TotalAmount)
fun incrementBy(subtotal: TotalAmount, onDate: Int)
fun incrementBy(amount: Long, ofCurrency: CurrencyType)
fun incrementBy(amount: Long, ofCurrency: CurrencyType, onDate: Int)
Link copied to clipboard
open override fun toString(): String